var selXSL = loadXMLDocXP("select.xsl");

//Generates and writes the dropdown list 
function initializeDropDown() {
    var size = getSizeC();
    var dropTrans;
    
	// code for IE
	if (window.ActiveXObject) 
	{
		// select the first header
	    var headers = getXMLHeadersXP();
		selXSL.getElementsByTagName("xsl:for-each")[1].setAttribute("select",
				"@" + headers[0] + "|" + headers[0]);
		
		dropTrans = xml.transformNode(selXSL);//transform
		document.getElementById("dropdown").innerHTML = dropTrans;
    	
	}

}

// updates the table based on the drop down when select is pushed
function select()
{
    var num= document.getElementById("Index_number");
    value = num.options[num.selectedIndex].value;

    if(-1==value)
    {
        XMLtoIDC("*/*");
    }
    else
    {
        XMLtoIDC("*/*["+value+"]");
    }
}
